﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompanyMoney.aspx.cs" Inherits="admin_company_CompanyMoney" %>

 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>阳澄湖牌 </title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.maintitle.innerHTML = "商家管理";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>应收应付款管理"
    </script>

       <script language="JavaScript" src="../../js/MathLibrary.js"></script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';

            }
        }

        function trim(str) { //删除左右两端的空格
            return str.replace(/(^\s*)|(\s*$)/g, "");
        }

        function checkForm() {

            var money = document.getElementById('<%=this.txtMoney.ClientID %>');
            if (trim(money.value) == "") {
                alert('金额不能为空!');
                money.focus();
                return false;
            } else if (isNaN(money.value)) {
                alert('金额只能为数字!');
                money.focus();
                return false;
            }
            return true;

        }
        function convertDecimal(num) {
            document.getElementById('<%= this.lblMoney.ClientID %>').innerText = "";

            if (checkForm()) {
                document.getElementById('<%= this.lblMoney.ClientID %>').innerText = cmycurd(num);
            }

        }


	</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <table width="98%" border="0" cellpadding="5" cellspacing="0">
      <tr>
      <td width="36%" align="right" class="title01">公司名称：</td>
      <td width="64%" align="left">
      
      <asp:Label ID="lblCompanyName" runat="server" ></asp:Label>
      </td>
    </tr>

      <tr>
      <td width="36%" align="right" class="title01">类型：</td>
      <td width="64%" align="left">
      <asp:Label ID="lblType" runat="server" ></asp:Label>
          &nbsp;</td>
    </tr>

    <tr>
      <td align="right" class="title01"> 金额(元)：</td>
      <td align="left">
         <asp:TextBox ID="txtMoney" runat="server" onchange="convertDecimal(this.value)" class="txtMoney"></asp:TextBox>*
        </td>
    </tr>

 


    <tr>
      <td align="right" class="title01"> &nbsp;</td>
      <td align="left">
          <asp:Label ID="lblMoney" runat="server" ></asp:Label>
        </td>
    </tr>

 


    <tr>
      <td align="right" class="title01"> 备注：</td>
      <td align="left">
         <asp:TextBox ID="txtRemark" runat="server" class="txtMoney" Height="119px" 
              TextMode="MultiLine" Width="258px"></asp:TextBox>
        </td>
    </tr>

 


    <tr>
      <td align="center" colspan="2"><asp:ImageButton ID="ImageButton1" ImageUrl="../images/buttom-02.gif" runat="server" OnClientClick="return checkForm();" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
    </tr>
  </table></td>
</tr>
</table>
</center>
    </div>
    </form>
</body>
</html>
